<?php
/**
 * Created by PhpStorm.
 * User: yuyj
 * Date: 16-11-10
 * Time: 下午4:16
 */

namespace common\services\common;


use common\repositories\common\MyscrmMaintainerAccountRepository;
use common\services\BaseService;

class MyscrmMaintainerAccountService extends BaseService
{
    private $_repository;

    public function __construct(MyscrmMaintainerAccountRepository $repository, $config = [])
    {
        $this->_repository = $repository;

        return parent::__construct($config);
    }

    /*
    $data = [[
        [userguid] => 814eddb3-832e-e511-9b71-848f69dfab18
        [usercode] => yuyj
        [username] => 余云建
    ]]
     * */

    public function batchBIndAccount($data)
    {
        return $this->_repository->batchBindAccount($data);
    }

    public function getAllBindAccounts()
    {
        return $this->_repository->getAllBindAccounts();
    }
}